<script>
    var LATITUDE = '<?php echo $this->LATITUDE; ?>';
    var LONGITUDE = '<?php echo $this->LONGITUDE; ?>';

    var MARKERLATITUDE = '<?php echo $this->MARKERLATITUDE; ?>';
    var MARKERLONGITUDE = '<?php echo $this->MARKERLONGITUDE; ?>';
    var MARKERCONTENT = "<?php echo $this->MARKERCONTENT; ?>";

    var MARKERS = '<?php echo $this->markerArray; ?>';
    var ISKMLPRESENT = '<?php echo $this->iskmlpresent; ?>';

    var UNIQUEIDENTIFIER = '<?php echo $this->UNIQUEIDENTIFIER; ?>';



</script>
<?php $this->headScript()->appendFile($this->JS_PATH . 'form_validations.js'); ?>




<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<div class="clearfix"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold">Add property</span></h3>
    </div>




    <div class="row">

        <div class="col-md-12">
            <div class="grid simple">
                <div class="grid-title">


                </div>
                <div class="grid-body ">
                    <div class="row">


                        <?php if (count($this->errorMessageArray) > 0): ?>
                            <div class="alert alert-error">
                                <?php foreach ($this->errorMessageArray as $erroValue): ?>

                                    <div class="text-left">
                                        <i class="icon-remove-sign"></i>
                                        <?php echo $erroValue; ?>
                                    </div>

                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

                        <form id="commentForm" action="" method="POST" enctype="multipart/form-data">
                            <div id="rootwizard" class="col-md-12">
                                <div class="form-wizard-steps">
                                    <ul class="wizard-steps">
                                        <li class="" data-target="#step1"> <a href="#tab1" data-toggle="tab"> <span class="step">1</span> <span class="title">User Details</span> </a> </li>
                                        <li data-target="#step2" class=""> <a href="#tab2" data-toggle="tab"> <span class="step">2</span> <span class="title">Property Location</span> </a> </li>
                                        <li data-target="#step3" class=""> <a href="#tab3" data-toggle="tab"> <span class="step">3</span> <span class="title">Property Details</span> </a> </li>
                                        <li data-target="#step4" class=""> <a href="#tab4" data-toggle="tab"> <span class="step">4</span> <span class="title">Property Gallery<br></span> </a> </li>
                                    </ul>
                                    <div class="clearfix"></div>
                                </div>
                                <div class="tab-content transparent">
                                    <div class="tab-pane" id="tab1"> <br>
                                        <h4 class="semi-bold">Step 1 - <span class="light">User Details</span></h4>
                                        <br>
                                        <div class="row form-row">
                                            <input type="hidden" name="UNIQUEIDENTIFIER" value="<?php echo $this->UNIQUEIDENTIFIER; ?>" />

                                            <div class="col-md-6">
                                                <label class="form-label">Username</label>
                                                <?php echo $this->form->member_id; ?>
                                            </div>

                                            <!-- <div class="col-md-6">
                                            <?php echo $this->form->prp_id; ?>
                                                 <input type="hidden" name="UNIQUEIDENTIFIER" value="<?php echo $this->UNIQUEIDENTIFIER; ?>" />
                                                 <label class="form-label">Username</label>
                                            <?php echo $this->form->member_username; ?>
                                             </div>
                                             <div class="col-md-6">
                                                 <label class="form-label">Email</label>
                                            <?php echo $this->form->member_email; ?>
                                             </div>-->
                                        </div>
                                        <!-- <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Name</label>
                                        <?php echo $this->form->mem_name; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <label class="form-label">Surname</label>
                                        <?php echo $this->form->mem_surname; ?>
                                            </div>
                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Phone</label>
                                        <?php echo $this->form->member_phone; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <label class="form-label">Mobile</label>
                                        <?php echo $this->form->mem_mobile; ?>
                                            </div>
                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Landline</label>
                                        <?php echo $this->form->mem_landline; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <label class="form-label">Work</label>
                                        <?php echo $this->form->mem_work; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-12">
                                                <label class="form-label">Address</label>
                                        <?php echo $this->form->mem_address; ?>
                                            </div>
                                        </div>
                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Country</label>
                                        <?php echo $this->form->mem_country; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <label class="form-label">City</label>
                                        <?php echo $this->form->mem_city; ?>
                                            </div>
                                        </div>
                                        <br/>
                                        <h4>Representative Details</h4>  <br/>
                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Representative Name</label>
                                        <?php echo $this->form->mem_representative_name; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <label class="form-label">Representative Telephone 1</label>
                                        <?php echo $this->form->mem_representative_telephone1; ?>
                                            </div>
                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Representative Telephone 2</label>
                                        <?php echo $this->form->mem_representative_telephone2; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <label class="form-label">Representative Telephone 3</label>
                                        <?php echo $this->form->mem_representative_telephone3; ?>
                                            </div>
                                        </div>
                                        -->
                                    </div>


                                    <div class="tab-pane" id="tab2"> <br>
                                        <h4 class="semi-bold">Step 2 - <span class="light">Property Location</span></h4>
                                        <br>

                                        <br/><br/>
					<h4>Address Details</h4>
					<br/>
                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <label class="form-label">Street Name and Number</label>
                                                <?php echo $this->form->prp_displayaddress; ?>
                                            </div>
                                            <div class="col-md-2">
                                                <label class="form-label">Post code</label>
                                                <?php echo $this->form->prp_post_code; ?>

                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-4">
                                                <label class="form-label">Country</label>
                                                <?php echo $this->form->prp_country; ?>
                                            </div>
                                            <div class="col-md-4">
                                                <label class="form-label">City</label>
                                                <?php echo $this->form->prp_city; ?>

                                            </div>
                                        </div>

                                        <br/>	

                                        <div class="row form-row">
                                            <div class="col-md-4">
                                                <label class="form-label">Area</label>
                                                <?php echo $this->form->prp_area; ?>
                                            </div>
                                            <div class="col-md-4">
                                                <label class="form-label">Enoria</label>
                                                <?php echo $this->form->prp_enoria; ?>
                                            </div>


                                        </div>

                                          
                                       
					 <br/><br/><br/>
					<h4>Location on Map</h4>
					<br/><br/>
                                        <div class="row form-row">
                                            <div class="col-md-3">
                                                <?php echo $this->form->prp_address; ?>
                                            </div>

                                            <div class="col-md-2">
                                                <input type="button"  id="search-map" class="btn btn-success btn-cons" type="button" value="Search"/>
                                            </div>
											<div class="col-md-2">
                                                <input type="button"  id="current-location" class="btn btn-danger btn-cons" type="button" value="Pin my Location"/>
                                            </div>
                                            

                                        </div>

                                        <div class="row form-row">                                        
                                            <div class="col-md-4">
                                            <label class="form-label">KML File</label>
                                                <input name="kml[]" class="kml_class" type="file" />
                                            </div>
                                        </div>		


                                        <br/>

                                        <div id="map-canvas" style="height:400px;width:800px;"></div>
                                        <br/>
					<div class="col-md-2">
                                                <?php echo $this->form->prp_lat; ?>
                                            </div>

                                            <div class="col-md-2">
                                                <?php echo $this->form->prp_lon; ?>
                                            </div>
                                        <br/><br/><br/>
					<h4>Parcel Information</h4>
					<br/><br/>
					<div class="row form-row">
                                            <div class="col-md-4 ">
                                                <label class="form-label">Entry Number (Arithmos Eggrafis)</label>
                                                <?php echo $this->form->prp_entrynumber; ?>
                                            </div>
                                            <div class="col-md-4">
                                                <label class="form-label">Plot Number (Arithmos Temaxiou)</label>
                                                <?php echo $this->form->prp_plotnumber; ?>
                                            </div>
                                        </div>	
                                    </div>

                                    <br/>
				      
                                    <div class="tab-pane" id="tab3"> <br>
                                        <h4 class="semi-bold">Step 3 - <span class="light">Property details</span></h4>
                                        <br>


                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->property_type; ?>
                                            </div>
                                            <div class="col-md-4">
                                                <?php echo $this->form->property_subtype; ?>
                                                <input type="hidden" name="property_hdn_subtype" id="property_hdn_subtype" value="<?php echo $this->prp_hdn_subtype; ?>" />
                                            </div>
                                        </div>

                                        <br/>
                                        
                                                                                
                                         <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Number of Bedrooms</label>
                                                <?php echo $this->form->prp_bedrooms; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Number of Bathrooms</label>
                                                <?php echo $this->form->prp_bathrooms; ?>
                                            </div>
                                        </div>

                                        <br/>
						
					 <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype plottype commercialtype buildingtype ">
                                                <label class="form-label">Plot Size</label>
                                                <?php echo $this->form->prp_plotsize; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype landtype plottype commercialtype businesstype buildingtype">
                                                <label class="form-label">Plot Area</label>
                                                <?php echo $this->form->prp_plotarea; ?>
                                            </div>
                                             <br/>
                                        </div>
					<div class="row form-row">
                                            <div class="col-md-4 propertytype plottype">
                                                <label class="form-label">Shape</label>
                                                <?php echo $this->form->prp_shape_id; ?>
                                            </div>
                                            
                                        </div>

					<br/>
                                        <div class="row form-row">
                                            <div class="col-md-12 prp-zone propertytype plottype">
                                                <?php
                                                if ($this->zoneString):
                                                    echo $this->zoneString;
                                                endif;
                                                ?>
                                            </div>
                                        </div>  
                                       
					<br/>	
                                        <div class="row form-row">
 					
                                            
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Year of Build</label>
                                                <?php echo $this->form->prp_built_year; ?>
                                            </div>
                                            
                                            <div class="col-md-4  propertytype housetype apartmenttype commercialtype  buildingtype plottype landtype ">
                                                <label class="form-label ">Title Deed</label>
                                                <?php echo $this->form->prp_title_deed; ?>

                                            </div>
                                        </div>
                                        
                                           <br/> 
  						<div class="row form-row">
                                            <!--<div class="col-md-4 propertytype housetype display-none">
                                                <label class="form-label">Year of Build</label>
                                            <?php echo $this->form->prp_built_year; ?>

                                            </div>-->
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Covered Area</label>
                                                <?php echo $this->form->prp_coveredarea; ?>
                                            </div>
                                            
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Covered Veranda</label>
                                                <?php echo $this->form->prp_coveredverenda; ?>
                                            </div>
                                        </div>

                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype apartmenttype commercialtype landtype">
                                                <label class="form-label">Uncovered Veranda Size</label>
                                                <?php echo $this->form->prp_uncovered_veranda_size; ?>
                                            </div>
                                        </div>
                                        <br/>			
                                        
                                         <div class="row form-row">
                                            
                                            <div class="col-md-4 propertytype apartmenttype commercialtype">
                                                <label class="form-label">Floor</label>
                                                <?php echo $this->form->prp_floor; ?>
                                            </div>
                                        
					<div class="col-md-4 propertytype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Storage</label>
                                                <?php echo $this->form->prp_storage; ?>

                                            </div>
                                        </div>    
                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Private yard</label>
                                                <?php echo $this->form->prp_private_yard; ?>
                                            </div>
                                            
                                        </div>
                                        <br/>
                                         <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Covered parking spaces</label>
                                                <?php echo $this->form->prp_covered_parking_space; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Uncovered parking spaces</label>
                                                <?php echo $this->form->prp_uncovered_parking_space; ?>

                                            </div>
                                        </div>
                                        <br/>
                                        
                                        <div class="row form-row">
                     <div class="col-md-4 propertytype housetype apartmenttype commercialtype buildingtype">
                                                <label class="form-label">Energy class</label>
                                                <?php echo $this->form->prp_energy_cls_id; ?>

                                            </div>
                                        </div>
                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype commercialtype buildingtype">
                                                <label class="form-label">Basement</label>
                                                <?php echo $this->form->prb_basement; ?>
                                            </div>
                                    
 					<div class="col-md-4 propertytype housetype ">
                                                <label class="form-label">Attic</label>
                                                <?php echo $this->form->prp_attic; ?>
                                            </div>
                                        </div>
                                        
                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype commercialtype buildingtype apartmenttype">
                                                <label class="form-label">Furnished </label>
                                                <div class="checkbox check-default">
                                                    <?php echo $this->form->prp_furnished; ?>
                                                    <label for="prp_furnished">Yes</label>
                                                </div>
                                            </div>
                                            <div class="col-md-4 propertytype housetype apartmenttype">
                                                <label class="form-label">Pets allowed </label>
                                                <div class="checkbox check-default">
                                                    <?php echo $this->form->prp_pets_allowed; ?>
                                                    <label for="prp_pets_allowed">Yes</label>
                                                </div>
                                            </div>
                                        </div>
					<br/>
 					<div class="row form-row">
                                           <?php /*
                                            <div class="col-md-4 propertytype landtype plottype">
                                                <label class="form-label">Zone</label>
                                                <?php echo $this->form->prp_zone; ?>
                                            </div>
                                            */ ?>
                                            <div class="col-md-4 propertytype landtype plottype commercialtype">
                                                <label class="form-label">Frontage</label>
                                                <?php echo $this->form->prp_frontage; ?>
                                            </div>
                                        </div>
                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype landtype">
                                                <label class="form-label">Water</label>
                                                <div class="checkbox check-default">
                                                    <?php echo $this->form->prp_water; ?>
                                                    <label for="prp_water">Yes</label>
                                                </div>
                                            </div>
                                            <div class="col-md-4 propertytype landtype">
                                                <label class="form-label">Electricity</label>
                                                <div class="checkbox check-default">
                                                    <?php echo $this->form->prp_electricity; ?>
                                                    <label for="prp_electricity">Yes</label>
                                                </div>
                                            </div>
                                        </div>

                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype landtype">
                                                <label class="form-label">Road Access </label>
                                                <div class="checkbox check-default">
                                                    <?php echo $this->form->prp_road_access; ?>
                                                    <label for="prp_road_access">Yes</label>
                                                </div>
                                            </div>
                                            <div class="col-md-4 propertytype landtype">
                                                <label class="form-label">Telephone Line </label>
                                                <div class="checkbox check-default">
                                                    <?php echo $this->form->prp_telephone_line; ?>
                                                    <label for="prp_telephone_line">Yes</label>
                                                </div>
                                            </div>
                                        </div>

                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype commercialtype">
                                                <label class="form-label">Floor Height</label>
                                                <?php echo $this->form->prp_floor_height; ?>
                                            </div>
                                            <div class="col-md-4 propertytype buildingtype">
                                                <label class="form-label">Basement levels</label>
                                                <?php echo $this->form->prp_basement_level; ?>
                                            </div>
                                        </div>


                                        <br/>
                                        <div class="row form-row">
                                          
                                            <div class="col-md-4 propertytype commercialtype buildingtype">
                                                <label class="form-label">Mezzanine</label>
                                                <?php echo $this->form->prp_mezzanine; ?>
                                            </div>
                                        </div>


                                    

                                        <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype commercialtype buildingtype">
                                                <label class="form-label ">Building floors</label>
                                                <?php echo $this->form->prp_building_floors; ?>
                                            </div>
                                            
                                        </div>

                                        <br/>
                                        
                                       

                                        
                                        <br/>
                                        
                                        

                                       
										
					<div class="row form-row">
                                            <div class="col-md-4 propertytype buildingtype">
                                                <label class="form-label  ">Office area</label>
                                                <?php echo $this->form->prp_office_area; ?>
                                            </div>
                                            <div class="col-md-4 propertytype buildingtype">
                                                <label class="form-label  ">Shop area</label>
                                                <?php echo $this->form->prp_shoparea; ?>
                                            </div>
					<div class="col-md-4 propertytype buildingtype">
                                                   <label class="form-label">Apartment area</label>
                                                <?php echo $this->form->prp_apartment_area; ?>
                                            </div>

											</div>
											<br/>	
                                         <div class="row">
                                            <div class="col-md-12">
                                                <ul class="nav nav-pills" id="tab-4">
                                                    <?php
                                                    $counterln = 1;
                                                    foreach ($this->languages as $_lan):
                                                        ?>

                                                        <li <? if ($counterln == 1) echo 'class="active"'; ?> ><a href="#tabs<?php echo ucfirst($_lan['lang_name']); ?>"><?php echo ucfirst($_lan['lang_name']); ?> Description</a></li>

                                                        <?php $counterln++; ?> 

                                                    <?php endforeach; ?>


                                                </ul>
                                                <div class="tab-content">
                                                    <?php
                                                    $counterln = 1;
                                                    foreach ($this->languages as $_lan):
                                                        ?>
                                                        <div class="tab-pane <? if ($counterln == 1) echo 'active'; ?> " id="tabs<?php echo ucfirst($_lan['lang_name']); ?>">
                                                            <div class="row column-seperation" style="margin-left:-25px;">
                                                                <div class="col-md-12">

                                                                    <textarea cols="60" rows="10" placeholder="Property Description" class="form-control wysihtml5-editor" name="prd_description[]"><?php echo $_lan['description']; ?></textarea>
                                                                </div>

                                                            </div>
                                                        </div>
                                                        <?php $counterln++; ?> 
                                                    <?php endforeach; ?>

                                                </div>
                                            </div>

                                        </div>

                                        <?php /* here */ ?>

                                    

                                    <br/>
                                       
                                         <div class="row form-row form-group">
                                            <div class="col-md-12">
											
												
                                                <div class="panel-group" id="accordion">
                                                    <?php
                                                    foreach ($this->allTagetypeData as $key => $value):
                                                        
                                                        ?>
                                                   
                                                        <div class="panel panel-default">
                                                            <div class="panel-heading collapsed"> <h4 class="panel-title">
                                                                    <a class="collapsed item-class" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $key; ?>">
                                                                        <?php echo $key; ?>
                                                                    </a>
                                                                </h4>
                                                            </div>
                                                            <div id="collapse<?php echo $key; ?>" class="panel-collapse collapse  item-container">
                                                                <div class="panel-body">
                                                                    <?php
                                                                    foreach ($value['subcategory'] as $subkey => $subvalue):
                                                                        
                                                                    ?>
                                                                    <div class="col-md-4">    
                                                                        <b> <?php echo $subkey;?></b>
                                                                        <br/><br/>
                                                                    <?php
                                                                    foreach ($subvalue['label_name'] as $label_key => $label_value):
                                                                       
                                                                        if ($this->prp_id):
                                                                            if (in_array($label_key, $this->savedtag)):
                                                                                $checked = "checked";
                                                                            else:
                                                                                $checked = "";
                                                                            endif;

                                                                        else:
                                                                            $checked = "";
                                                                        endif;
                                                                        ?>
                                                                        <div class="checkbox check-default">
                                                                            <input type="checkbox" <?php echo $checked; ?>  value="<?php echo $label_key; ?>" id="prp_all_<?php echo $label_key; ?>" name="prp_alltag[]">
                                                                            <label for="prp_all_<?php echo $label_key; ?>"><?php echo $label_value; ?></label>
                                                                            <input type="hidden" name="tag_cat_id_<?php echo $label_key; ?>" value="<?php echo $value['id']; ?>" />
                                                                        </div>
                                                                   
                                                                        <?php
                                                                    endforeach;?>
                                                                         </div><?php
                                                                    endforeach;
                                                                    ?>			  </div>
                                                            </div>
                                                        </div>
                                                        <?php
                                                    endforeach;
                                                    ?>


                                                </div>
                                                <!------End--->                            


											
    					
											</div>
                                       
                                       
                                        			
                                        <div class="row form-row">
                                            <div class="markas-container col-md-12 propertytype housetype apartmenttype commercialtype plottype landtype  businesstype buildingtype">
                                                <label class="form-label">Mark As</label>
                                                <?php
												$i = 0;
                                                foreach ($this->markasData as $markaskey => $markasvalue):
                                                    if ($this->prp_id):
                                                        $dataArray = $this->savedmarkasData;
                                                    else:
                                                        $dataArray = $this->postmarkas;
                                                    endif;
                                                    if(count($dataArray)!=0):
                                                    if ($_POST || $this->prp_id):
                                                        if (in_array($markasvalue['markas_id'], $dataArray)):
                                                            $checked = "checked";
                                                        else:
                                                            $checked = "";
                                                        endif;
                                                        endif;
                                                    else:
                                                        $checked = "";
                                                    endif;
                                                    ?>
													<?php $firstCheckBoxClass =  ($i == 0)?"firstcheckbox":"";?>
                                                    <div class="checkbox check-default">
                                                        <input class="<?php echo $firstCheckBoxClass; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo $markasvalue['markas_id']; ?>" id="markas_<?php echo $markasvalue['markas_id']; ?>" name="prp_markas[]">
                                                        <label for="markas_<?php echo $markasvalue['markas_id']; ?>"><?php echo ucfirst($markasvalue['markas_name']); ?></label>
                                                    </div>
													<?php $i++; ?>
                                                <?php endforeach; ?>
                                            </div>
                                            </div>
                                             <br/>
                                        <div class="row form-row">
                                            <div class="col-md-4 mark-as-investment propertytype">
                                                <label class="form-label">Roi</label>
                                                <?php echo $this->form->prp_roi; ?>
                                            </div>
                                            <div class="col-md-4 propertytype mark-as-investment">
                                                <label class="form-label">Guarandeed for X</label>
                                                <?php echo $this->form->prp_guarandeed_for_x; ?>
                                            </div>
                                            
                                        </div>
                                        <div class="row form-row">
 						<div class="col-md-4 propertytype mark-as-investment">
                                                <label class="form-label">Current Income</label>
                                                <?php echo $this->form->prp_current_income; ?>
                                            	</div>
                                        </div>
                                       
                                      
                                            
                                          
					  <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype  plottype apartmenttype commercialtype landtype  buildingtype">
                                                <label class="form-label">Sale Price</label>
                                                <?php echo $this->form->prp_saleprice; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype plottype apartmenttype commercialtype landtype  buildingtype">
                                                <label class="form-label">Rent Price</label>
                                                <?php echo $this->form->prp_rentprice; ?>                                              
                                            </div>
                                        </div>
                                        <br/>
					<div class="row form-row">
                                            <div class="col-md-6 propertytype housetype apartmenttype commercialtype plottype landtype  buildingtype">
                                                <?php echo $this->form->prp_vat_id; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype commercialtype plottype landtype buildingtype display-none">
                                                <?php echo $this->form->prp_plot_size_type_id; ?>
                                            </div>
                                        </div>   
                                        <br/>
                                        <div class="row form-row ">
                                            <div class="col-md-4 display-none propertytype">
                                                <label class="form-label">Total area 1</label>
                                                <?php echo $this->form->prp_total_area_1; ?>
                                            </div>

                                            <div class="col-md-4 display-none">
                                                <label class="form-label">Total area 2</label>
                                                <?php echo $this->form->prp_total_area_2; ?>
                                            </div>
                                            <div class="col-md-4 display-none propertytype ">
                                                <label class="form-label">Price per square</label>
                                                <?php echo $this->form->prp_price_per_square; ?>
                                            </div>
                                        </div>


                                        <br/>
                                        


                                  








                                                <!-- <?php if (count($this->secondryData) > 0): ?>
                                                         <label class="form-label">Secondary</label>
                                                         <div class="controls">
                                                    <?php
                                                    foreach ($this->secondryData as $second_key => $second_value):
                                                        if (in_array($second_key, $this->editsecondryData)):
                                                            // echo 'in';
                                                            $checked = 'checked';
                                                        else:
                                                            $checked = '';
                                                        endif;
                                                        ?>
                                                                     <div class="checkbox check-default">
                                                                         <input type="checkbox" <?php echo $checked; ?> value="<?php echo $second_key; ?>" id="prp_secondry_<?php echo $second_key; ?>" name="prp_secondry[]">
                                                                         <label for="prp_secondry_<?php echo $second_key; ?>"><?php echo $second_value; ?></label>
                                                                     </div> <br/>
                                                        <?php
                                                    endforeach;
                                                    ?>
                                                         </div>
                                                <?php endif; ?>
                                                 <br/>
                                                <?php if (count($this->indoorData) > 0): ?>
                                                         <label class="form-label">Indoor</label>
                                                         <div class="controls">
                                                    <?php
                                                    foreach ($this->indoorData as $indoor_key => $indoor_value):
                                                        if (in_array($indoor_key, $this->editindoorData)):

                                                            $checked1 = 'checked';
                                                        else:
                                                            $checked1 = '';
                                                        endif;
                                                        ?>
                                                                     <div class="checkbox check-default">
                                                                         <input type="checkbox" <?php echo $checked1; ?> value="<?php echo $indoor_key; ?>" id="prp_indoor_<?php echo $indoor_key; ?>" name="prp_indoor[]">
                                                                         <label for="prp_indoor_<?php echo $indoor_key; ?>"><?php echo $indoor_value; ?></label>
                                                                     </div> <br/>
                                                        <?php
                                                    endforeach;
                                                    ?>
                                                         </div>
                                                <?php endif; ?>
                                                 <br/>
                                                <?php if (count($this->outdoorData) > 0): ?>
                                                         <label class="form-label">Outdoor</label>
                                                         <div class="controls">
                                                    <?php
                                                    foreach ($this->outdoorData as $outdoor_key => $outdoor_value):
                                                        if (in_array($outdoor_key, $this->editoutdoorData)):
                                                            $checked2 = 'checked';
                                                        else:
                                                            $checked2 = '';
                                                        endif;
                                                        ?>
                                                                     <div class="checkbox check-default">
                                                                         <input type="checkbox" <?php echo $checked2; ?> value="<?php echo $outdoor_key; ?>" id="prp_outdoor_<?php echo $outdoor_key; ?>" name="prp_outdoor[]">
                                                                         <label for="prp_outdoor_<?php echo $outdoor_key; ?>"><?php echo $outdoor_value; ?></label>
                                                                     </div> <br/>
                                                        <?php
                                                    endforeach;
                                                    ?>
                                                         </div>
                                                <?php endif; ?>
                                                 <br/>
                                                <?php if (count($this->tenancyData) > 0): ?>
                                                         <label class="form-label">Tenancy</label>
                                                         <div class="controls">
                                                    <?php
                                                    foreach ($this->tenancyData as $tenancy_key => $tenancy_value):
                                                        if (in_array($tenancy_key, $this->edittenancyData)):
                                                            $checked3 = 'checked';
                                                        else:
                                                            $checked3 = '';
                                                        endif;
                                                        ?>
                                                                     <div class="checkbox check-default">
                                                                         <input type="checkbox" <?php echo $checked3; ?> value="<?php echo $tenancy_key; ?>" id="prp_tenancy_<?php echo $tenancy_key; ?>" name="prp_tenancy[]">
                                                                         <label for="prp_tenancy_<?php echo $tenancy_key; ?>"><?php echo $tenancy_value; ?></label>
                                                                     </div> <br/>
                                                        <?php
                                                    endforeach;
                                                    ?>
                                                         </div>
                                                <?php endif; ?>dame-->
                                                
                                                </div> 
                                            


                                            <!--<div class="col-md-4 propertytype housetype">
                                                <label class="form-label">Indoor Facilities</label>
                                                <div class="controls">
                                            <?php echo $this->form->prp_indoor; ?>
                                                </div>
                                            </div>dame --->



                                        </div>


                                        <!--  <div class="row form-row form-group">
  
                                              <div class="col-md-4 propertytype housetype">
                                                  <label class="form-label">Outdoor Facilities</label>
                                                  <div class="controls">
                                        <?php echo $this->form->prp_outdoor; ?>
                                                  </div>
                                              </div>
  
  
                                              <div class="col-md-4 propertytype housetype">
                                                  <label class="form-label">Tenancy Details</label>
                                                  <div class="controls">
                                        <?php echo $this->form->prp_tenancy; ?>
                                                  </div>
                                              </div>
  
  
                                          </div>-->




                                       



                                        <br/>




                                       

                                    <div class="tab-pane" id="tab4"> <br>
                                        <h4 class="semi-bold">Step 4 - <span class="light">Property gallery</span></h4>
                                        <br>


                                        <div class="mainimage-container">
                                            <h4>Main Image</h4>            
                                            <div class="row form-row">
                                                <div class="col-md-4">
                                                    <input name="prpi_main_image[]" class="image_class" type="file" />
                                                </div>
                                            </div>		


                                            <?php if ($this->prpi_main_image != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/mainimage/" . $this->prpi_main_image;
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'MAIN_IMAGE', 'id' => $this->prp_id), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                            <?php endif; ?>

                                        </div>


                                        <div class="fyllosxedio-container">
                                            <h4>Brochure</h4>            
                                            <div class="row form-row">
                                                <div class="col-md-4">
                                                    <input name="prpi_fyllo_sxedio[]" class="image_class" type="file" />
                                                </div>
                                            </div>	

                                            <div class="row form-row">
                                                <div class="col-md-6">
                                                    <label class="form-label">Video Embeded Code</label>
                                                    <?php echo $this->form->prp_videotext; ?>
                                                </div>
                                            </div>

                                            <?php foreach ($this->propertyImages['FYLLO_SXEDIO'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/fyllo_sxedio/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'FYLLO_SXEDIO', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>

                                        <div class="livingimages-wrappercontainer">
                                            <h4>Living Areas(s)</h4>            
                                            <div class="row form-row livingimagecontainer">


                                                <div class="col-md-10">
                                                    <div class="dropzone living_image_dropzone">
                                                    </div>
                                                </div>
                                                <?php /* ?>
                                                  <div class="col-md-3">
                                                  <input name="prpi_living_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success addlivingimages">Add</button>
                                                  </div>
                                                  <?php */ ?>

                                            </div>		

                                            <br/>
                                            <?php foreach ($this->propertyImages['LIVING_ROOM'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/living/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'LIVING_ROOM', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>


                                        <div class="extraimages-wrappercontainer">
                                            <h4>Kitchen</h4>            
                                            <div class="row form-row extraimagecontainer">

                                                <div class="col-md-10">
                                                    <div class="dropzone extraimage_dropzone">
                                                    </div>
                                                </div>

                                                <?php /* ?>
                                                  <div class="col-md-8">
                                                  <input name="prpi_extra_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success addextraimages">Add</button>
                                                  </div>
                                                  <?php */ ?>
                                            </div>		
                                            <br/>
                                            <?php foreach ($this->propertyImages['EXTRA_IMAGE'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/extraimages/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'EXTRA_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>

                                        <div class="bedimages-wrappercontainer">
                                            <h4>Bedroom (s)</h4>            
                                            <div class="row form-row bedroomimagecontainer">

                                                <div class="col-md-10">
                                                    <div class="dropzone bedroom_image_dropzone">
                                                    </div>
                                                </div>
                                                <?php /* ?>

                                                  <div class="col-md-3">
                                                  <input name="prpi_bedroom_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success addbedroomimages">Add</button>
                                                  </div>
                                                  <?php */ ?>
                                            </div>		

                                            <br/>
                                            <?php foreach ($this->propertyImages['BEDROOM_IMAGE'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/bedroom/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'BEDROOM_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>



                                        <div class="bathimages-wrappercontainer">
                                            <h4>Bathroom(s)</h4>            
                                            <div class="row form-row bathroomimagecontainer">

                                                <div class="col-md-10">
                                                    <div class="dropzone bathroom_image_dropzone">
                                                    </div>
                                                </div>
                                                <?php /* ?>
                                                  <div class="col-md-3">
                                                  <input name="prpi_bathroom_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success addbathroomimages">Add</button>
                                                  </div>
                                                  <?php */ ?>

                                            </div>		

                                            <br/>
                                            <?php foreach ($this->propertyImages['BATHROOM'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/bathroom/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'BATHROOM', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>


                                        <div class="outdoorimages-wrappercontainer">
                                            <h4>Outdoor</h4>            
                                            <div class="row form-row outdoorimagecontainer">

                                                <div class="col-md-10">
                                                    <div class="dropzone outdoor_image_dropzone">
                                                    </div>
                                                </div>
                                                <?php /* ?>


                                                  <div class="col-md-3">
                                                  <input name="prpi_outdoor_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success addoutdoorimages">Add</button>
                                                  </div>
                                                  <?php */ ?>

                                            </div>		

                                            <br/>
                                            <?php foreach ($this->propertyImages['OUTDOOR'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/outdoor/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'OUTDOOR', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>        


                                        <div class="three60images-wrappercontainer">
                                            <h4>360</h4>            
                                            <div class="row form-row 360imagecontainer">
                                                <div class="col-md-10">
                                                    <div class="dropzone three60image_dropzone">
                                                    </div>
                                                </div>
                                                <?php /* ?>
                                                  <div class="col-md-3">
                                                  <input name="prpi_360_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success add360images">Add</button>
                                                  </div>
                                                  <?php */ ?>

                                            </div>		
                                            <br/>

                                            <?php foreach ($this->propertyImages['THREE_SIXTY_IMAGE'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/threesixtyimages/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'THREE_SIXTY_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>

                                        </div>


                                        <div class="floorimages-wrappercontainer">
                                            <h4>Floorplan</h4>            
                                            <div class="row form-row floorimagecontainer">

                                                <div class="col-md-10">
                                                    <div class="dropzone floor_image_dropzone">
                                                    </div>
                                                </div>

                                                <?php /* ?>

                                                  <div class="col-md-3">
                                                  <input name="prpi_floor_image[]" class="image_class" type="file" />
                                                  </div>
                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success addfloorimages">Add</button>
                                                  </div>
                                                  <?php */ ?>

                                            </div>		
                                            <br/>

                                            <?php foreach ($this->propertyImages['FLOOR_IMAGE'] as $_img): ?>
                                                <?php if ($_img['prpi_img'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "upload/property/floor/" . $_img['prpi_img'];
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'FLOOR_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>




                                        <div class="documents-wrappercontainer">
                                            <h4>Upload Documents</h4>            
                                            <div class="row form-row documentcontainer">


                                                <div class="col-md-10">
                                                    <div class="dropzone document_dropzone">
                                                    </div>
                                                </div>
                                                <?php /* ?>

                                                  <div class="col-md-3">
                                                  <input name="prpi_document[]" class="image_class" type="file" />
                                                  </div>

                                                  <div class="col-md-2">
                                                  <button type="button" class="btn btn-success adddocument">Add</button>
                                                  </div>

                                                  <?php */ ?>

                                            </div>		

                                            <br/>
                                            <?php foreach ($this->propertyDocuments['DOCUMENT'] as $_img): ?>
                                                <?php if ($_img['prpd_doc'] != ""): ?>
                                                    <div class="row form-row">
                                                        <div class="col-md-3">
                                                            <?php
                                                            $src_path = $this->PUBLIC_PATH . "img/document.png";
                                                            ?>
                                                            <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                            <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'DOCUMENT', 'id' => $_img['prpd_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                        </div>
                                                    </div>		
                                                    <br/>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        </div>

                                    </div>

                                    <br/>                                    
                                    <br/>                                    


                                    <ul class=" wizard wizard-actions">
                                        <li class="previous first" style="display:none;"><a href="javascript:;" class="btn">&nbsp;&nbsp;First&nbsp;&nbsp;</a></li>
                                        <li class="previous"><a href="javascript:;" class="btn">&nbsp;&nbsp;Previous&nbsp;&nbsp;</a></li>
                                        <li class="next last disabled" style="display:none;"><a href="javascript:;" class="btn btn-primary">&nbsp;&nbsp;Last&nbsp;&nbsp;</a></li>
                                        <li class="next disabled lastbutton"><a href="javascript:;" class="btn btn-primary">&nbsp;&nbsp;Next&nbsp;&nbsp;</a></li>

                                        <?php if ($this->mode == 'Edit'): ?>
                                            <input type="submit" value="Edit property" class="submitfrmbtn display-none btn btn-primary" name="Edit property"/>
                                        <?php else: ?>
                                            <input type="submit" value="Add property" class="submitfrmbtn display-none btn btn-primary" name="Add property"/>
                                        <?php endif; ?>

                                    </ul>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->